package com.zk.spring5.dao;

import org.springframework.stereotype.Component;

/**
 * @author ZK
 * @Description
 * @time 2021/5/8 10:34
 * @note
 */
public interface AccountDao {
    int receiveMoney(Integer id,double money);

    int payMoney(Integer id,double money);

    /**
     * 收钱或者付钱。
     * @param id
     * @param money 收钱为正，付钱为负
     * @return int
     * @author ZK
     * @time 2021/5/8 16:21
     */
    int changeMoney(Integer id,double money);
}
